<template>
  <div>
    <Son></Son>
    <button @click="fatherFn">fatherFn</button>
    <button @click="cancel">cancel</button>
  </div>
</template>

<script>
  import Son from './Son'
  export default {
    name: "Father",
    components: {Son},
    methods: {
      fatherFn() {
        this.$emit('clw', 'father')
      },
      cancel() {
        this.$off('clw')
      }
    },
    created() {
      // this.$on('clw', function (param) {
      //   console.log(param)
      // })
    }
  }
</script>

<style scoped>

</style>
